# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Test-Script
pkgname=perl-${_realname}
pkgver=1.26
pkgrel=1
pkgdesc="Basic cross-platform tests for scripts"
arch=('any')
url="https://metacpan.org/release/Test-Script"
groups=('perl-modules')
depends=('perl' 'perl-IPC-Run3' 'perl-Probe-Perl' 'perl-Test-Simple')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/P/PL/PLICEASE/${_realname}-${pkgver}.tar.gz")
sha256sums=('6d42237aece2f0dc41fa6653379574674061848f020acd4d63deb6b81b5a73b7')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
